<a class="btn btn-primary" onclick="appEexport()">
 <i class="${strutil.out(button.icon!,'fa fa-anchor')}"></i> ${button.name}
</a>
<script type="text/javascript">
var appEexport = function() {
	var $grid = $('#grid_${object.id}');
	console.log('输入表格');
	console.log($grid);
    var rows = $grid.bootstrapTable('getSelections');
    var num = rows.length;
    if (num == "0") {
    	$.slideMsg("请至少选择一条记录！");
        return;
    }
    var vals = [];
    for (var i = 0; i < rows.length; i++) { //组成一个字符串，ID主键用逗号隔开
    	vals.push(rows[i]['id']);
    }
	// 新开窗口生成脚本
    window.open('/rock/app/doExport/' + vals.join(','));
};
</script>